package com.learning.spring.bean.dynamic.config.taglib;

import org.springframework.beans.factory.xml.NamespaceHandlerSupport;

/**
 * ClassName: TaglibBeanNameSpaceHandler
 * Description: Spring 命名空间解析器
 * Date: 2018/8/20 11:00 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
public class UserDynamicConfigTaglibNameSpaceHandler extends NamespaceHandlerSupport {

    /**
     * 把自定义标签的解析器注册到 Spring 命名空间解析器
     */
    @Override
    public void init() {
        registerBeanDefinitionParser("user-dynamic-config-taglib", new UserDynamicConfigTaglibDefinitionParser());
    }
}
